<?php
class Region {
	var $IDRegion = null;
	var $NamaRegion = null;
	var $InfoRegion = null;
	var $Lokasi = null;
	var $Alamat = null;
	var $JamBuka = null;
	var $JamTutup = null;
	var $ProfPict = null;
	var $status = 0;
	
	//constructor
	function Region(){
		$this->connect();
	}
	// connect ke database WEPO-PKL
	function connect(){
		mysql_connect('localhost','root','') or die("cannot connect to server");
		mysql_select_db('wepo-pkl') or die("cannot select database");
	}
	//menambahkan list baru
	function insert(){
		mysql_query("INSERT INTO Region ('IDRegion','NamaRegion') 
		values ("'.$this->IDRegion'", "'.$this->NamaRegion.'")");
	}
}
?>